import React from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { history } from 'umi';

import type { ConnectProps } from 'umi';

interface Props extends ConnectProps {

}

const DataSourceForm: React.FC<Props> = (props) => {
  const { match } = props;
  const { id: dataPoolId, sourceId } = match?.params as { id: string; sourceId?: string };

  console.log('dataPoolId', dataPoolId);
  console.log('sourceId', sourceId);

  return (
    <PageContainer onBack={() => history.push(`/dataPoolManage/source/${dataPoolId}/list`)}>
      添加、编辑数据源
    </PageContainer>
  )
}

export default DataSourceForm;